package com.cloudkinto.vo.role.menu;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class MenuNewTreeRes {
    private Long id;
    private String url;
    private String component;
    private String name;
    private boolean hidden;
    @ApiModelProperty("子菜单")
    private List<MenuNewTreeRes> children;
    private MetaTreeRes meta;

    public MenuNewTreeRes(Long id, String url, String component, String name, boolean hidden, MetaTreeRes meta) {
        this.id = id;
        this.url = url;
        this.component = component;
        this.name = name;
        this.hidden = hidden;
        this.meta = meta;
    }
}
